package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 问题回答记录对象 sys_question_record
 * 
 * @author ruoyi
 * @date 2022-05-22
 */
public class SysQuestionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 问题编码 */
    private Long questionId;

    /** 企业编码 */
    private Long companyId;

    /** 问卷编码 */
    @Excel(name = "问卷编码")
    private Long naireId;

    /** 用户编码 */
    @Excel(name = "用户编码")
    private Long userId;

    /** 问题答案 */
    @Excel(name = "问题答案")
    private String answer;

    /** 问题附件 */
    @Excel(name = "问题附件")
    private String attachments;

    /** 得分比例 */
    @Excel(name = "得分比例")
    private Long scoreWeight;

    /** 其他 */
    @Excel(name = "其他")
    private String other;

    /** 存在问题描述 */
    @Excel(name = "存在问题描述")
    private String questionDesc;

    /** 诊断意见 */
    @Excel(name = "诊断意见")
    private String suggestion;

    /** 后续工作 */
    @Excel(name = "后续工作")
    private String todo;

    /** 工作计划 */
    @Excel(name = "工作计划")
    private String plan;

    /** 诊断者 */
    @Excel(name = "诊断者")
    private String diagnosisBy;

    /** 诊断时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "诊断时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date diagnosisTime;

    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public void setCompanyId(Long companyId)
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setNaireId(Long naireId) 
    {
        this.naireId = naireId;
    }

    public Long getNaireId() 
    {
        return naireId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setAttachments(String attachments) 
    {
        this.attachments = attachments;
    }

    public String getAttachments() 
    {
        return attachments;
    }
    public void setScoreWeight(Long scoreWeight) 
    {
        this.scoreWeight = scoreWeight;
    }

    public Long getScoreWeight() 
    {
        return scoreWeight;
    }
    public void setOther(String other) 
    {
        this.other = other;
    }

    public String getOther() 
    {
        return other;
    }
    public void setQuestionDesc(String questionDesc) 
    {
        this.questionDesc = questionDesc;
    }

    public String getQuestionDesc() 
    {
        return questionDesc;
    }
    public void setSuggestion(String suggestion) 
    {
        this.suggestion = suggestion;
    }

    public String getSuggestion() 
    {
        return suggestion;
    }
    public void setTodo(String todo) 
    {
        this.todo = todo;
    }

    public String getTodo() 
    {
        return todo;
    }
    public void setPlan(String plan) 
    {
        this.plan = plan;
    }

    public String getPlan() 
    {
        return plan;
    }
    public void setDiagnosisBy(String diagnosisBy) 
    {
        this.diagnosisBy = diagnosisBy;
    }

    public String getDiagnosisBy() 
    {
        return diagnosisBy;
    }
    public void setDiagnosisTime(Date diagnosisTime) 
    {
        this.diagnosisTime = diagnosisTime;
    }

    public Date getDiagnosisTime() 
    {
        return diagnosisTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("questionId", getQuestionId())
            .append("companyId", getCompanyId())
            .append("naireId", getNaireId())
            .append("userId", getUserId())
            .append("answer", getAnswer())
            .append("attachments", getAttachments())
            .append("scoreWeight", getScoreWeight())
            .append("other", getOther())
            .append("questionDesc", getQuestionDesc())
            .append("suggestion", getSuggestion())
            .append("todo", getTodo())
            .append("plan", getPlan())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("diagnosisBy", getDiagnosisBy())
            .append("diagnosisTime", getDiagnosisTime())
            .append("remark", getRemark())
            .toString();
    }
}
